package com.zuihai.app.mvp.model.api.service;

import com.zuihai.app.mvp.model.entity.BaseJsonList;
import com.zuihai.app.mvp.model.entity.BaseMainClass;
import com.zuihai.app.mvp.model.entity.MyBaseModelResult;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Panda_Program on 2018/7/15 0015.
 */

public interface AdvertisingService {
    //请求我的广告列表页面
    @FormUrlEncoded
    @POST("MyReleaseInq")
    Observable<BaseJsonList<MyBaseModelResult>> myAdList(@Field("my_id") String myID,
                                                         @Field("page") int page
    );

    //申请广告   fenlei_tag ：广告分类（1=开屏、2=列表 、 3=详情）
    @FormUrlEncoded
    @POST("Advertisement_AddInq")
    Observable<BaseMainClass> addAd
    (@Field("my_id") String myID,
     @Field("picture") String picture,
     @Field("guanggao_id") String guanggao_id,
     @Field("fenlei_tag") int fenlei_tag,
     @Field("title") String title,
     @Field("jump_url") String jump_url,
     @Field("price") String price
     );


}
